﻿using LPLS.DBEntities.ConfigModels.DataCollectionConfigModule.DataCollectionRuleEdgeModule;
using LPLS.DBEntities.ConfigModels.DataCollectionConfigModule.DataCollectionType.PLC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPLS.DBInterface.ConfigModels.DataCollectionConfigModule.DataCollectionRuleEdgeModule
{
    public  interface IDataCollectionRuleConfigService:IDBBaseInterface
    {

        List<DataCollectionWorkFlowConfig> GetData();

        int AddData(DataCollectionWorkFlowConfig model);

        int UpdateData(DataCollectionWorkFlowConfig model);
        int DeleteData(Guid deviceid, Guid CompentId);
        /// <summary>
        /// 通过 设备ID 与器件ID找到相应的规则配置
        /// </summary>
        /// <param name="deviceid"></param>
        /// <param name="CompentId"></param>
        /// <returns></returns>
        List<DataCollectionWorkFlowConfig> GetData(Guid deviceid, Guid CompentId);
    }
}
